/*    */ package net.sourceforge.appgen.databinding;
/*    */ 
/*    */ import org.eclipse.core.databinding.validation.IValidator;
/*    */ import org.eclipse.core.databinding.validation.ValidationStatus;
/*    */ import org.eclipse.core.runtime.IStatus;
/*    */ 
/*    */ public class DatabaseSchemaValidator
/*    */   implements IValidator
/*    */ {
/*    */   public IStatus validate(Object value)
/*    */   {
/* 29 */     if ((value instanceof String)) {
/* 30 */       String s = (String)value;
/*    */ 
/* 32 */       if (s.length() == 0) {
/* 33 */         return ValidationStatus.error("Select the schema.");
/*    */       }
/*    */ 
/* 36 */       return ValidationStatus.OK_STATUS;
/*    */     }
/* 38 */     throw new RuntimeException("Not supposed to be called for non-strings.");
/*    */   }
/*    */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.databinding.DatabaseSchemaValidator
 * JD-Core Version:    0.6.0
 */